import { getRequest } from "/@/lib/axios";
import { postRequest } from "/src/lib/axios";
export const selfSupportApi = {
	querAllselfSuppor: (param) => {
		return postRequest("/vehicleEmissionData/queryPage", {
			...param,
			searchCount: true,
			sortItemList: [
				{
					isAsc: true,
					column: "vehicle_emission_data_id",
				},
			],
		});
	},
	Add: (param) => {
		return postRequest("/vehicleEmissionData/add", param);
	},
	//排量
	queryData: (param) => {
		return postRequest("/sourceData/queryPage", {
			...param,
			searchCount: true,
			sortItemList: [
				{
					isAsc: true,
					column: "source_id",
				},
			],
		});
	},
	//燃料
	queryran: (param) => {
		return postRequest("/fuelType/queryPage", {
			...param,
			searchCount: true,
			sortItemList: [
				{
					isAsc: true,
					column: "fuel_type_id",
				},
			],
		});
	},
	update: (param) => {
		return postRequest("/vehicleEmissionData/update", param)
	},
	DElete: (vehicleEmissionDataId) => {
		return getRequest("/vehicleEmissionData/delete/" + vehicleEmissionDataId)
	}
};
